package base.thread_JUC2.chapter02.demo04;

public class TestCase {

    public static void main(String[] args) {
        PrintQueue printQueue=new PrintQueue();

        Thread thread[] = new Thread[10];
        for (int i=0; i<10; i++){
            thread[i] = new Thread(new Job(printQueue),"Thread "+i);
        }

        // Starts the Threads
        for (int i=0; i<10; i++){
            thread[i].start();
        }
    }
}
